package com.iam.common;

import com.iam.entity.User;
import org.springframework.stereotype.Service;

import java.util.HashMap;

/**
 * create by yongli on 2021-10-09 11:30
 */
@Service
public class MemoryCache {
    private HashMap<String, User> map = new HashMap<>();

    public void set(String key, User val) {
        map.put(key, val);
    }

    public User get(String key) {
        return map.get(key);
    }

    public long get(String key, boolean isNum) {
        return 11111111111111111L;
    }

    public void set(String name, long start, int end) {

    }
}
